/*对是否已上报字段的转换*/

package com.estate.utils;

public class SubmitUtil {
	
	public static String getSubmitString(int submitInt){
		String submitString="";
		if(submitInt==1){
			submitString="未上报";
		}else if(submitInt==2){
			submitString="已上报";
		}
		return submitString;
	}
	
	public static int getSubmitInt(String submitString){
		int submitInt=0;
		if(submitString=="未上报"){
			submitInt=1;
		}else if(submitString=="已上报"){
			submitInt=2;
		}
		return submitInt;
	}
}
